<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css">
    <style>
        #base_content{
            margin-top:50px;
        }
    </style>
    <title>{% block title %}{% endblock %}</title>
    {% block custom_style %}{% endblock %}
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Freewheel Photos</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="http://52.221.228.19:8037/api">Home</a></li>
                <li><a href="http://52.221.228.19:8037/api/friend/all">Lobby</a></li>
            </ul>
            {% if redirect_url %}

            {% else %}
                <ul class="nav navbar-nav navbar-right">
                    {% if has_login %}
                        <li><a href="{{ profile_url }}">Hi {{ username }}</a></li>
                        <li><a href="{{ profile_url }}">My Profile</a></li>
                        <li><a href="http://52.221.228.19:8037/api/friend/mine">Following</a></li>
                        <li><a href="{{ logout_url }}">Logout</a></li>
                    {% else %}
                        <li><a href="http://52.221.228.19:8037/api">Login</a></li>
                    {% endif %}
                </ul>
            {% endif %}
        </div>

    </div>
</nav>
<div id="base_content" class="container">
{% block content %}{% endblock %}
</div>

</body>

{% block custom_js %}{% endblock %}
</html>